import { S } from '../../s';
import { IPSDEChartLegend } from './ipsdechart-legend';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSDEChartLegendImpl
  extends PSModelObjectImpl
  implements IPSDEChartLegend
{
  get index(): number {
    return this.M.index;
  }

  get legendPos(): string {
    return this.M.legendPos;
  }

  get showLegend(): boolean {
    return this.M.showLegend;
  }
  get cls(): string {
    return 'PSDEChartLegendImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._fd || cls == S._fe) return true;
    return super.instanceof(cls);
  }
}
